const { merge } = require('webpack-merge')
const commonConfig = require('./webpack.config.common')
const productionConfig = require('./webpack.config.prod')
const developmentConfig = require('./webpack.config.dev')
module.exports = (env) => {
    console.log("🚀 ~ env:", env)
    const webpackConfig = merge(commonConfig(env), env.production ? productionConfig : developmentConfig)
    console.log("🚀 ~ webpackConfig:", webpackConfig.module.rules[0].oneOf)
    return webpackConfig
}